<?php
//session_destroy(); /////   removes any old sesson data for this domain       /var/lib/php/session
session_unset();

if ($_POST['password']) {

//print_r($_POST);

	if ($_POST['password'] == "radi0-935") {
		
	session_start();
	ini_set('?session.gc_maxlifetime?', 60*60);
	  header("Cache-control: private");
	  $_SESSION['password'] = $_POST['password'];
	  header("location: index.php");
	  exit;
		
	} else {
		$msg = "Sorry, login incorrect. Please try again.";
		
		}



}
	
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Studio Homepage</title>

<link href="../css/style.css" rel="stylesheet" type="text/css" />

</head>

<body>
<table width="750" height="60" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="4" class="index_table_hed"><div align="center" style="font-size:18px;">Studio Computer</div></td>
  </tr>
  
</table>
<p style="color:red;"><?=$msg?></p>

<div class="" >
Please login:
<form action="login.php" method="post">
<br />Password:<input name="password" type="password" /><br />
<br /><input name="" type="submit" value="Submit" />
</form>
</div>
<br /><br /><br />
<br /><br /><br />
<!--<a href="admin" target="blank"><u>Administration</u> (sponsorship spots)</a> -->
</body>
</html>